package com.evil.application.pojo.bo.application.process.node;

import cn.hutool.core.bean.BeanUtil;
import com.evil.application.pojo.entity.ApplicationProcessNode;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ProcessNodeBO extends ApplicationProcessNode {

    private List<ProcessNodeBO> children;

    public ProcessNodeBO() {
        this.children = new ArrayList<>();
    }

    public ProcessNodeBO(ApplicationProcessNode applicationProcessNode) {
        BeanUtil.copyProperties(applicationProcessNode, this);
        this.children = new ArrayList<>();
    }
}
